package org.geektimes.configuration.microprofile.config.convert;

import org.geektimes.configuration.microprofile.config.IConverter;

/**
 * @author :   chuan
 * @date :   2021/03/17
 */
public class ShortConverter implements IConverter {
    @Override
    public Object convert(String s) throws IllegalArgumentException, NullPointerException {
        return Short.parseShort(s);
    }

    @Override
    public Class<?> getClassType(){
        return Short.class;
    }
}